package BusLib;

import java.io.Serializable;


public class Bus implements Serializable {
    int id_;
    String name_;
    Route route_;



    /*
     * Constructori.
     */
    public Bus(){
        id_=0;
        name_=null;
        route_=new Route();

    }
    public Bus(int id, String name){
        id_ = id;
        name_ = name;
        route_ = new Route();
      }

    /*
     * Metode publice.
     */
    public int Id(){ return id_;}
    public void SetId( int id ){ id_ = id;}
    public String Name(){ return name_;}
    public void SetName( String name){name_ = name;}
    public Route Route(){ return route_;}
    public void SetRoute( Route route){ route_ = route;}
}
